from pyecharts.charts import Bar
from pyecharts import options
sal=[2420,2320,2100,2690,2490]
city =["北京","天津","重庆","上海","杭州"]
bar = Bar()
bar.add_xaxis(city)
bar.add_yaxis("月薪/元",sal)
bar.set_global_opts(title_opts=options.TitleOpts(title="各城市的最低薪水图"))
bar.render("barmin.html")